x86/smp: Clean up use of memflags in cpu_smpboot_alloc()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Apr 2015 17:26:17 +0000 (18:26 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 10 Apr 2015 15:36:10 +0000 (11:36 -0400)
commit610cdad6486abd1c0d9a514d6761bb39f5e3b579
tree0695368c7d33bed675744b2cc71c91d37379e1f1
parent4b277dca0db3aa0f2937b6f427e7b695f1b05975
x86/smp: Clean up use of memflags in cpu_smpboot_alloc()

Hoist MEMF_node(cpu_to_node(cpu)) to the start of the function, and avoid
passing (potentially bogus) memflags if node information is not available.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <JBeulich@suse.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/smpboot.c